﻿<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeFile="tab_ArticleBase_List.aspx.cs" Inherits="AdminCMS_tab_ArticleBase_List" %>
<%@ Register Src="~/UIControls/ProSplitPage.ascx" TagName="ProSplitPage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>文章基表列表浏览</title>
<style type="text/css">
td {text-align:left;}
.list_title { padding-left:20px; height:22px;}
</style>
<script type="text/javascript" src="js/UIMethod.js"></script>
</head>

<body style="text-align:center;">

<form id="form1" runat="server">

<div style="text-align:center;">
    文章分类：<asp:DropDownList runat="server" ID="ddl_class"></asp:DropDownList>
    &nbsp;
    关键词:<asp:TextBox ID="txt_keyword" runat="server"></asp:TextBox>&nbsp;
		<input type="button" value="搜索" onclick="SearchEvent();" />    
</div>

<table cellpadding="0" cellspacing="0" width="100%" border="0" class="border">
	<tr>
		<td class="title_left" style="padding-left:20px;width:60px;">
		<input type="checkbox" onclick="all_chkBox_check(this.checked);" />全选
		</td>
		<td class="title_left" style="padding-left:20px;">编号</td>
		<td class="title_left" style="padding-left:20px;">标题</td>		
		<td class="title_left" style="padding-left:20px;">浏览量</td>
		
		<td class="title_left" style="padding-left:20px;">荐</td>
		<td class="title_left" style="padding-left:20px;">图</td>
		<td class="title_left" style="padding-left:20px;">视</td>
				
		<td class="title_left" style="padding-left:20px;">发布者</td>
		<td class="title_left" style="padding-left:20px;">所属栏目</td>
		<td class="title_left" style="padding-left:20px;">发布日期</td>
		<td class="title_left" style="padding-left:20px; width:50px;">操作</td>
	</tr>
	
	
	<!-- 重复区 start -->
	<asp:Repeater ID="repeater1" Runat="server">
		<ItemTemplate>
		
		<tr onmouseover="this.className='tdbg_left';" onmouseout="this.className='';">
			<td class="list_title" style="padding-left:20px;"><input type="checkbox" value='<%# Eval("art_ID") %>' name="check_class"></td>			
			<td class="list_title"><%# Eval("art_ID") %></td>
            <td class="list_title"><%# Eval("art_Title") %></td>
			<td class="list_title"><%# Eval("art_Hits") %></td>
			
			<td class="list_title"><%# GlocalCache.Getbool_match( Eval("art_IsElite") ) %></td>
			<td class="list_title"><%# GlocalCache.Getbool_match(Eval("art_IsMap"))%></td>
			<td class="list_title"><%# GlocalCache.Getbool_match(Eval("art_IsVideo"))%></td>
			
			<td class="list_title"><%# Eval("adm_RealName")%></td>
			<td class="list_title"><%# Eval("cls_NodeText") %></td>
			<td class="list_title"><%# Convert.ToDateTime( Eval("art_PubDate") ).ToShortDateString() %></td>
			
			<td class="list_title"><a href='<%# "tab_ArticleBase_Fix.aspx?ID=" + Eval("art_ID") %>'>修改</a></td>			
		
		</tr>
		</ItemTemplate>
	</asp:Repeater>
	<!-- 重复区 end -->
</table>
<!--阴影-->
	<div style="width:98%;" class="tdbg_left2">
	</div>
	<!--阴影end-->
	
<!-- 分页控件 start -->
<div style="text-align:right;"><uc1:ProSplitPage ID="ProSplitPage1" runat="server" MaxRows="20" /></div>
<!-- 分页控件 end -->

<div class="tCenter" style="text-align:center;">
	<input type="button" value="添加" onclick="SearchEvent('tab_ArticleBase_Add.aspx');" />
	<input type="button" value="将所选删除" onclick="DeleteToSelected('form1','tab_ArticleBase_Del.aspx');" />
</div>


</form>
</body>
</html>
<link id="mylink" href="css/style<%=UIMethod.GetStyleValue()%>.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript">
function SearchEvent(URL)
{
	if(typeof(URL) == 'undefined') { URL = ''; }
	location = URL + "?ClassID=" + document.getElementById('ddl_class').value +	                 
	                "&KeyWord=" + escape(document.getElementById('txt_keyword').value);
}
</script>
